
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>3.目录结构 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    
    <link rel="prev" href="2-init.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" >
            
                <span>
            
                    
                    入门
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.1" data-path="../">
            
                <a href="../">
            
                    
                    0.开始
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.2" data-path="1-install.html">
            
                <a href="1-install.html">
            
                    
                    1.安装
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.3" data-path="2-init.html">
            
                <a href="2-init.html">
            
                    
                    2.创建一本书
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.1.4" data-path="3-directory.html">
            
                <a href="3-directory.html">
            
                    
                    3.目录结构
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2" >
            
                <span>
            
                    
                    基础
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="4-menu.html">
            
                <a href="4-menu.html">
            
                    
                    4.菜单
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="5-set.html">
            
                <a href="5-set.html">
            
                    
                    5.设置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="6-words.html">
            
                <a href="6-words.html">
            
                    
                    6.词汇表
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="7-langs.html">
            
                <a href="7-langs.html">
            
                    
                    7.多语言
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.5" data-path="8-markdown.html">
            
                <a href="8-markdown.html">
            
                    
                    8.markdown
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.6" data-path="9-asciidoc.html">
            
                <a href="9-asciidoc.html">
            
                    
                    9.AsciiDoc
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.7" data-path="10-E-book.html">
            
                <a href="10-E-book.html">
            
                    
                    10.生成电子书
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" >
            
                <span>
            
                    
                    异常处理
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="error.html">
            
                <a href="error.html">
            
                    
                    异常处理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="support.html">
            
                <a href="support.html">
            
                    
                    赞助/支持
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >3.目录结构</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="&#x76EE;&#x5F55;&#x7ED3;&#x6784;">&#x76EE;&#x5F55;&#x7ED3;&#x6784;</h1>
<p>gitbook &#x4F7F;&#x7528; SUMMARY &#x6587;&#x4EF6;&#x7BA1;&#x7406;&#x76EE;&#x5F55;&#x7ED3;&#x679C;&#xFF0C;&#x6587;&#x4EF6;&#x652F;&#x6301; Markdown &#x548C; Asciidoc &#x4E24;&#x79CD;&#x8BED;&#x6CD5;&#x3002;<br>gitbook &#x6309;&#x7167; SUMARY &#x6587;&#x4EF6;&#x4E2D;&#x7684;&#x76EE;&#x5F55;&#x7ED3;&#x6784;&#x751F;&#x6210; html&#x3002;<br>&#x5982;&#x679C;&#x901A;&#x8FC7; gitbook &#x521B;&#x5EFA;&#x4E00;&#x672C;&#x652F;&#x6301;&#x591A;&#x8BED;&#x8A00;&#x7684;&#x6587;&#x6863;&#xFF0C;&#x76EE;&#x5F55;&#x7ED3;&#x6784;&#x4F1A;&#x7A0D;&#x5FAE;&#x4E0D;&#x540C;&#xFF0C;&#x5177;&#x4F53;&#x53EF;&#x53C2;&#x8003;<a href="">&#x591A;&#x8BED;&#x8A00;&#x73AF;&#x5883;</a>  </p>
<p>&#x4E00;&#x822C; gitbook &#x76EE;&#x5F55;&#x5982;&#x4E0B;&#xFF1A;  </p>
<pre><code>.
|- book.json
|- README.md
|- SUMMARY.md
|- chapter-1/
|  |- README.md
|  |- somethind.md
|- chapter-2/
   |- README.md
   |- something.md
</code></pre><p>&#x7B80;&#x5355;&#x4ECB;&#x7ECD;&#x6BCF;&#x4E00;&#x9879;&#xFF1A;  </p>
<table>
<thead>
<tr>
<th style="text-align:center">&#x6587;&#x4EF6;</th>
<th style="text-align:center">&#x8BF4;&#x660E;</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:center">book.json</td>
<td style="text-align:center">&#x4FDD;&#x5B58;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x6570;&#x636E;&#xFF08;&#x53EF;&#x9009;&#xFF09;</td>
</tr>
<tr>
<td style="text-align:center">README.md</td>
<td style="text-align:center">&#x7B80;&#x4ECB;-&#x4E66;&#x7C4D;&#x7684;&#x7B80;&#x5355;&#x4ECB;&#x7ECD;&#xFF08;&#x5FC5;&#x586B;&#xFF09;</td>
</tr>
<tr>
<td style="text-align:center">SUMMARY.md</td>
<td style="text-align:center">&#x76EE;&#x5F55;&#xFF08;&#x53EF;&#x9009;&#xFF09;</td>
</tr>
<tr>
<td style="text-align:center">GLOSSARY.md</td>
<td style="text-align:center">&#x5B57;&#x6BB5;/&#x6CE8;&#x91CA;-&#x4E13;&#x4E1A;&#x672F;&#x8BED;&#x8868;&#xFF08;&#x53EF;&#x9009;&#xFF09;</td>
</tr>
</tbody>
</table>
<h2 id="&#x9759;&#x6001;&#x6587;&#x4EF6;">&#x9759;&#x6001;&#x6587;&#x4EF6;</h2>
<p>&#x9759;&#x6001;&#x6587;&#x4EF6;&#x662F; <code>SUMMARY.md</code> &#x4E2D;&#x672A;&#x5217;&#x51FA;&#x7684;&#x6587;&#x4EF6;&#x3002;<br>&#x6240;&#x6709;&#x9759;&#x6001;&#x6587;&#x4EF6;&#xFF0C;&#x5305;&#x542B;html&#x3001;CSS&#x3001;JS&#x3001;img&#x90FD;&#x4F1A;&#x590D;&#x5236;&#x5230;&#x5BF9;&#x5E94;&#x76EE;&#x5F55;&#x4E0B;&#x3002;  </p>
<h2 id="&#x5FFD;&#x7565;&#x7684;&#x6587;&#x4EF6;&#x6216;&#x6587;&#x4EF6;&#x5939;">&#x5FFD;&#x7565;&#x7684;&#x6587;&#x4EF6;&#x6216;&#x6587;&#x4EF6;&#x5939;</h2>
<p>gitbook &#x5C06;&#x8BFB;&#x53D6; <code>.gitignore</code>&#x3001;<code>bookignore</code>&#x548C;<code>.ignore</code>&#x6587;&#x4EF6;&#xFF0C;&#x4EE5;&#x83B7;&#x53D6;&#x8981;&#x5FFD;&#x7565;&#x7684;&#x6587;&#x4EF6;&#x548C;&#x6587;&#x4EF6;&#x5939;&#x5217;&#x8868;&#x3002;<br>&#x88AB;&#x5FFD;&#x7565;&#x7684;&#x6587;&#x4EF6;&#x4E0D;&#x4F1A;&#x88AB;&#x4E0A;&#x4F20;&#x5230;&#x7248;&#x672C;&#x4E2D;&#x3002;<br>&#x8FD9;&#x4E9B;&#x6587;&#x4EF6;&#x4E2D;&#x7684;&#x683C;&#x5F0F;&#x9075;&#x5FAA;&#x4E0E; <code>.gitignore</code> &#x76F8;&#x540C;&#x7684;&#x7EA6;&#x5B9A;&#xFF1A;  </p>
<pre><code># &#x4E95;&#x53F7;&#x4EE3;&#x8868;&#x8FD9;&#x662F;&#x4E00;&#x884C;&#x6CE8;&#x91CA;

# test.md    &#xFF08;&#x5FFD;&#x7565;&#x6587;&#x4EF6;test.md&#xFF09;

# bin/*    (&#x5FFD;&#x7565;&#x76EE;&#x5F55; bin &#x4E2D;&#x7684;&#x6240;&#x6709;&#x5185;&#x5BB9;)
</code></pre><h2 id="&#x4EE5;&#x5B50;&#x76EE;&#x5F55;&#x7684;&#x65B9;&#x5F0F;&#x4E0E;&#x9879;&#x76EE;&#x96C6;&#x6210;">&#x4EE5;&#x5B50;&#x76EE;&#x5F55;&#x7684;&#x65B9;&#x5F0F;&#x4E0E;&#x9879;&#x76EE;&#x96C6;&#x6210;</h2>
<p>&#x5BF9;&#x4E8E;&#x8F6F;&#x4EF6;&#x9879;&#x76EE;&#xFF0C;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;&#x5B50;&#x76EE;&#x5F55;&#xFF08;&#x5982;<code>docs/</code>&#xFF09;&#x6765;&#x5B58;&#x50A8;&#x9879;&#x76EE;&#x7684;&#x6587;&#x6863;&#x3002;<br>&#x4F60;&#x53EF;&#x4EE5;&#x5728; <code>book.json</code> &#x4E2D;&#x901A;&#x8FC7;&#x914D;&#x7F6E;&#x9009;&#x9879;&#x544A;&#x8BC9; gitbook &#x5728;&#x54EA;&#x91CC;&#x627E;&#x5230;&#x6839;&#x76EE;&#x5F55;&#xFF1A;  </p>
<pre><code>.
|- book.json
|- docs/
   |- README.md
   |- SUMMARY.md
</code></pre><p><code>book.json</code> &#x4E2D;&#x7684;&#x914D;&#x7F6E;&#x5982;&#x4E0B;&#xFF1A;  </p>
<pre><code>{
    &quot;root&quot;: &quot;./docs&quot;
}
</code></pre>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="2-init.html" class="navigation navigation-prev navigation-unique" aria-label="Previous page: 2.创建一本书">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"3.目录结构","level":"1.1.4","depth":2,"next":{"title":"基础","level":"1.2","depth":1,"ref":"","articles":[{"title":"4.菜单","level":"1.2.1","depth":2,"path":"docs/4-menu.md","ref":"./docs/4-menu.md","articles":[]},{"title":"5.设置","level":"1.2.2","depth":2,"path":"docs/5-set.md","ref":"./docs/5-set.md","articles":[]},{"title":"6.词汇表","level":"1.2.3","depth":2,"path":"docs/6-words.md","ref":"./docs/6-words.md","articles":[]},{"title":"7.多语言","level":"1.2.4","depth":2,"path":"docs/7-langs.md","ref":"./docs/7-langs.md","articles":[]},{"title":"8.markdown","level":"1.2.5","depth":2,"path":"docs/8-markdown.md","ref":"./docs/8-markdown.md","articles":[]},{"title":"9.AsciiDoc","level":"1.2.6","depth":2,"path":"docs/9-asciidoc.md","ref":"./docs/9-asciidoc.md","articles":[]},{"title":"10.生成电子书","level":"1.2.7","depth":2,"path":"docs/10-E-book.md","ref":"./docs/10-E-book.md","articles":[]}]},"previous":{"title":"2.创建一本书","level":"1.1.3","depth":2,"path":"docs/2-init.md","ref":"./docs/2-init.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"docs/3-directory.md","mtime":"2020-07-09T07:41:13.593Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-07-13T08:21:17.520Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

